<div id="login_form" name="login_form">
	<form action="/login/login" method="post">		
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			{if $ERROR}
			<tr>
				<td align="left" style="padding-top:10px;" colspan="2">
					<div class="error">{$ERROR}</div>
				</td>
			</tr>
			{/if}
			<tr>
				<td align="left" style="padding-top:10px;">
					<a class="grey2">Логин:</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:10px;">
					<input type="text" style="width:134px;" width="100px" height="20px" class="grey" name="login" value="Логин" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-top:5px;">
					<a class="grey2">Пароль:</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:5px;">
					<input type="password" style="width:134px;" width="100px" height="20px" class="grey" name="password" value="Пароль" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" class="grey2" style=" padding-top:10px; padding-bottom:10px;">
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td align="left">
								<a href="javascript:void(0);" onclick="document.getElementById('login_form').style.display='none';document.getElementById('register_form').style.display='block';" class="grey2">Регистрация</a>&nbsp;&nbsp;|&nbsp;&nbsp;
								<a href="javascript:void(0);" onclick="document.getElementById('login_form').style.display='none';document.getElementById('forget_form').style.display='block';"  class="grey2">Забыли пароль?</a>
							</td>
							<td align="right" style="padding-right:20px;">
								<input type="submit" value="Вход" class="but" height="15px">
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</div>
<div id="register_form" name="register_form" style="display: none;">
	<form action="/login/register" method="post">
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td align="left" style="padding-top:10px;">
					<a class="grey2">Логин:</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:10px;">
					<input type="text" width="100px" height="20px" name="login" class="grey" value="Логин" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-top:5px;">
					<a class="grey2">Пароль:</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:5px;">
					<input type="password" width="100px" height="20px" name="password" class="grey" value="Пароль" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-top:5px;">
					<a class="grey2">Пароль*:</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:5px;">
					<input type="password" width="100px" height="20px" class="grey" name="password1" value="Пароль" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-top:5px;">
					<a class="grey2">e-mail</a>
				</td>
				<td align="right" style="padding-right:20px; padding-top:10px;">
					<input type="text" width="100px" height="20px" class="grey" name="email" value="e-mail" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" style=" padding-top:10px;" align="left">
					<a href="javascript:void(0);" onclick="document.getElementById('login_form').style.display='block';document.getElementById('register_form').style.display='none';" class="grey2">Вход</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:void(0);" onclick="document.getElementById('register_form').style.display='none';document.getElementById('forget_form').style.display='block';"  class="grey2">Забыли пароль?</a>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="right" style=" padding-top:10px; padding-bottom:10px; padding-right:20px;">
					<input type="submit" value="Зарегистрироваться" class="but" height="15px">
				</td>
			</tr>
		</table>
	</form>
</div>
<div id="forget_form" name="forget_form" style="display: none;">
	<form action="/login/forget" method="post">
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td align="left" style="padding-top:10px;">
					<a class="grey2">Логин или e-mail</a>
				</td>
			</tr>
			<tr>
				<td align="left" style="padding-top:5px;">
					<input type="text" style="width:89%;" height="20px" class="grey" name='login_email' value="Логин или e-mail" onfocus="value=''"/>
				</td>
			</tr>
			<tr>
				<td colspan="2" style=" padding-top:10px;" align="left">
					<a href="javascript:void(0);" onclick="document.getElementById('forget_form').style.display='none';document.getElementById('register_form').style.display='block';"  class="grey2">Регистрация</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:void(0);" onclick="document.getElementById('forget_form').style.display='none';document.getElementById('login_form').style.display='block';"  class="grey2">Вход</a>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="right" style=" padding-top:10px; padding-bottom:10px; padding-right:20px;">
					<input type="submit" value="Восстановить" class="but" height="15px">
				</td>
			</tr>
		</table>
	</form>
</div>